package com.hyh.fireworks.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author summerday
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Posts对象", description="文章表")
public class Posts extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "作者id")
    private Integer authorId;

    @ApiModelProperty(value = "文章类型 0原创 1转载 2翻译")
    private Integer type;

    @ApiModelProperty(value = "是否开启评论")
    private Boolean disallowComment;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishedTime;

    @ApiModelProperty(value = "编辑方式 0为markdown")
    private Integer editorType;

    @ApiModelProperty(value = "赞赏数")
    private Long likes;

    @ApiModelProperty(value = "描述")
    private String metaDescription;

    @ApiModelProperty(value = "关键词")
    private String metaKeywords;

    @ApiModelProperty(value = "文章内容")
    private String content;

    @ApiModelProperty(value = "别名[url]标识")
    private String slug;

    @ApiModelProperty(value = "发布状态 1为发布 2为草稿 3回收站 4私密")
    private Integer status;

    @ApiModelProperty(value = "摘要")
    private String summary;

    @ApiModelProperty(value = "缩略图")
    private String thumbnail;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "置顶优先级")
    private Integer topPriority;

    @ApiModelProperty(value = "是否置顶 1为置顶 ")
    private Integer isTop;

    @ApiModelProperty(value = "文章url")
    private String url;

    @ApiModelProperty(value = "浏览量")
    private Long viewCount;

    @ApiModelProperty(value = "评论数")
    private Long commentCount;



}
